<template>
  <div class="nav-bar">
    <div></div>
    <div class="title">学生广场</div>
    <div >
      <img class="push" src="../../assets/img/square/添加 (1).svg" @click="to_push" alt="">
    </div>
  </div>
</template>

<script>

export default {
  name: '',
  data () {
    return {
      
    }
  },
  methods:{
    to_push(){
       this.$router.push("/square_post");
    }
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .nav-bar{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    
    width: 100%;
    height: 44px;
    background-color: rgb(76, 76, 245);
    color: #fff;
    line-height: 44px;
    text-align: center;
    display: flex;
  }
  .nav-bar div{
    flex: 1;
  }
  .push{
    margin-left: 40px;
    margin-top: 5px;
    width: 35px;
    height: 35px;
  }

</style>